/*
 * DevBoard2021-Labs-7segment.c
 *
 * Created: 22.06.2021 16:31:35
 * Author : serge
 */ 

#define 	F_CPU   8000000UL

#include <avr/io.h>
#include "sevensegment.h"

void gpio_init();


int data = 0;
int iter = 0;

int main(void)
{	
	gpio_init();
	UCSR0B = 0;
	
    while (1) 
    {
		show_integer(data);
		iter ++;
		if (iter > 100)
		{
			data ++;
			iter = 0;
		}
    }
}


void gpio_init()
{
	DDRB = 0b00001111;
	DDRD = 0b11111111;
}
